﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- saved from url=(0035)http://tool.oschina.net/hexconvert/ -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN" lang="zh-CN"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"> 
<title>在线进制转换</title> 
 
<meta http-equiv="Content-Language" content="zh-CN"> 
<meta name="keywords" content="开源中国 在线工具,ostools,jsbin,加密/解密，Markdown,less,java api,php api,node.js api,QR Code">
<meta name="description" content="开源中国在线工具,ostools为开发设计人员提供在线工具，提供jsbin在线 CSS、JS 调试，在线 Java API文档,在线 PHP API文档,在线 Node.js API文档,Less CSS编译器，MarkDown编译器等其他在线工具">
<link rel="shortcut icon" href="http://tool.oschina.net/img/favicon.ico" type="image/x-icon"> 
<link rel="stylesheet" href="./index_files/cygj/jzzh/basic.css" type="text/css"> 
<script async="" type="text/javascript" src="./index_files/cygj/jzzh/ca-pub-7090564139599510.js"></script><script type="text/javascript" src="./index_files/cygj/jzzh/jquery-1.7.2.js"></script>
<script type="text/javascript" src="./index_files/cygj/jzzh/jquery.cookies.2.2.0.min.js"></script>
<link rel="stylesheet" href="http://tool.oschina.net/js/bootstrap/css/bootstrap.min.css">
<script src="./index_files/cygj/jzzh/bootstrap.min.js"></script>

<script src="./index_files/cygj/jzzh/bsStatic.js" type="text/javascript" charset="gb2312"></script><script src="./index_files/cygj/jzzh/bs-engine.js" type="text/javascript" charset="gb2312"></script><style type="text/css">a.bshareDiv,#bsPanel,#bsMorePanel,#bshareF{border:none;background:none;padding:0;margin:0;font:12px Helvetica,Calibri,Tahoma,Arial,宋体,sans-serif;line-height:14px;}#bsPanel div,#bsMorePanel div,#bshareF div{display:block;}.bsRlogo .bsPopupAwd,.bsRlogoSel .bsPopupAwd,.bsLogo .bsPopupAwd,.bsLogoSel .bsPopupAwd{line-height:16px !important;}a.bshareDiv div,#bsFloatTab div{*display:inline;zoom:1;display:inline-block;}a.bshareDiv img,a.bshareDiv div,a.bshareDiv span,a.bshareDiv a,#bshareF table,#bshareF tr,#bshareF td{text-decoration:none;background:none;margin:0;padding:0;border:none;line-height:1.2}a.bshareDiv span{display:inline;float:none;}div.buzzButton{cursor:pointer;font-weight:bold;}.buzzButton .shareCount a{color:#333}.bsStyle1 .shareCount a{color:#fff}span.bshareText{white-space:nowrap;}span.bshareText:hover{text-decoration:underline;}a.bshareDiv .bsPromo,div.bshare-custom .bsPromo{display:none;position:absolute;z-index:100;}a.bshareDiv .bsPromo.bsPromo1,div.bshare-custom .bsPromo.bsPromo1{width:51px;height:18px;top:-18px;left:0;line-height:16px;font-size:12px !important;font-weight:normal !important;color:#fff;text-align:center;background:url(http://static.bshare.cn/frame/images/bshare_box_sprite2.gif) no-repeat 0 -606px;}div.bshare-custom .bsPromo.bsPromo2{background:url(http://static.bshare.cn/frame/images/bshare_promo_sprite.gif) no-repeat;cursor:pointer;}</style><style type="text/css">.bsBox{display:none;z-index:100000001;font-size:12px;background:url(http://static.bshare.cn/frame/images//background-opaque-dark.gif) !important;padding:6px !important;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;}.bsClose{_overflow:hidden;cursor:pointer;position:absolute;z-index:10000000;color:#666;font-weight:bold;font-family:Helvetica,Arial;font-size:14px;line-height:20px;}.bsTop{color:#666;background:#f2f2f2;height:24px;line-height:24px;border-bottom:1px solid #e8e8e8;}.bsTop span{float:left;}.bsFrameDiv,#bsMorePanel{border:none;background:#fff;}.bsReturn{float:right;*margin-right:20px;margin-right:36px;text-align:right;cursor:pointer;line-height:24px;color:#666;opacity:0.5;}#bsReturn:hover{text-decoration:underline;opacity:1;}</style><script src="./index_files/cygj/jzzh/bsMore.js" type="text/javascript" charset="gb2312"></script><script src="./index_files/cygj/jzzh/bshareS3.js" type="text/javascript" charset="gb2312"></script><style type="text/css">div.bsClear{clear:both;height:0;line-height:0;overflow:hidden;font-size:0;}.bsSearchDiv{padding:5px 15px;background-color:#fafafa;}.bFind-wrapper-top{background:#fff;border-color:#ccc #aaa #aaa #ccc;border-style:solid;border-width:1px;height:16px;padding:4px;margin:0;}.bFind-wrapper-top input{padding:0 !important;border:none !important;box-shadow:none !important;line-height:16px !important;}.bFind-placeholder{background:url("http://static.bshare.cn/css/images/search-icon.gif") no-repeat;display:block;float:left;height:16px;width:16px;}.bFind{background:none;border:none;float:left;font-size:11px !important;height:16px !important;margin-left:3px;outline:none;padding:0;width:400px;}.bsPlatDiv{height:322px;background:#fff;overflow:auto;padding:0 15px;}#bsLogoList{display:block;list-style:none;overflow:hidden;margin:0;padding:0;}#bsLogoList li{float:left;display:inline-block;width:71px;text-align:center;font-size:12px;height:80px;margin:0 !important;}#bsLogoList .bsPlatIcon{cursor:pointer;display:block !important;text-align:center;}#bsLogoList .bsPlatImg{width:32px;height:32px;border:none !important;display:inline-block;}#bsLogoList .bsPlatImg:hover{-moz-border-radius:7px;-webkit-border-radius:7px;border-radius:7px;box-shadow:0 0 15px #a7a8ac;}#bsLogoList .bsPlatName{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;text-align:center;color:#333 !important;margin-top:2px;line-height:140%;*width:70px;}#bsLogoList .bsPromoM{text-align:center;}.bsFooterDiv{height:24px;line-height:24px;padding:0 15px;border-top:1px solid #e8e8e8;background:#f2f2f2;text-align:right;}a.bsLogoLink{color:#666;}.bsLogoLink:hover{text-decoration:underline;}.bsPromoM{background:url(http://static.bshare.cn/frame/images//bshare_box_sprite2.gif) no-repeat top left;}.bsNew,.bsHot,.bsRec,.bsAwd{background-position:0 -552px;width:19px;margin:5px auto 1px;line-height:16px;height:18px;font-size:12px;color:#fff;overflow:hidden;}.bsNew{background-position:0 -570px;}.bsRec{width:30px;background-position:0 -588px;}.bsAwd{background:url(http://static.bshare.cn/frame/images//promot/promote.gif) no-repeat;}</style><script src="./index_files/cygj/jzzh/bshare_view" type="text/javascript" charset="gb2312"></script><style type="text/css">.bs-xtop,.bs-xbottom{display:block;background:transparent !important;font-size:1px;width:100%;}.bs-xb1,.bs-xb2,.bs-xb3,.bs-xb4{display:block; overflow:hidden;}.bs-xb1,.bs-xb2,.bs-xb3{height:1px;}.bs-xb2,.bs-xb3,.bs-xb4{background-color:#06C;}.bs-xb1{margin-left:5px;background-color:#06C;}.bs-xb2{margin-left:3px;border-width:0 2px;}.bs-xb3{margin-left:2px;}.bs-xb4{height:2px;margin-left:1px;}.bs-lb1,.bs-lb2,.bs-lb3,.bs-lb4 {display:block;overflow:hidden;}.bs-lb1,.bs-lb2,.bs-lb3{height:1px;}.bs-lb2,.bs-lb3,.bs-lb4{background-color:#06C;}.bs-lb1{margin-right:5px;background-color:#06C;}.bs-lb2{margin-right:3px;border-width:0 2px;}.bs-lb3{margin-right:2px;}.bs-lb4{height:2px;margin-right:1px;}.bs-verticaltext{writing-mode:tb-rl;filter:fliph fliph;-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg);}a.bsSiteLink{text-decoration:none;color:#666;}a.bsSiteLink:hover{text-decoration:underline;}div.bsTitle{padding:0 8px;border-bottom:1px solid #e8e8e8;color:#666;background:#f2f2f2;text-align:left;}div.buzzButton{cursor:pointer;}div.bsRlogo,div.bsRlogoSel{width:68px;float:left;margin:0;padding:2px 0;}div.bsRlogo a,div.bsRlogoSel a{float:left;}div.bsLogo,div.bsLogoSel{float:left;width:111px;text-align:left;height:auto;padding:2px 4px;margin:2px 0;white-space:nowrap;overflow:hidden;}div.bsLogoSel,div.bsRlogoSel{border:1px solid #ddd;background:#f1f1f1;}div.bsLogo,div.bsRlogo{border:1px solid #fff;background:#fff;}div.bsLogo a,div.bsLogoSel a{display:block;height:16px;line-height:16px;padding:0 0 0 24px;text-decoration:none;float:left;overflow:hidden;}div.bsLogoSel a,div.bsRlogoSel a{color:#000;border:none;}div.bsLogo a,div.bsRlogo a{color:#666;border:none;}div.bsLogoLink{width:121px;overflow:hidden;background:#FFF;float:left;margin:3px 0;}#bsPanel{z-index:100000000;font-size:12px;width:137px;background:url(http://static.bshare.cn/frame/images/background-opaque-dark.png);padding:6px;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;}div.bsClear{clear:both;height:0;line-height:0;font-size:0;overflow:hidden;}div.bsPopupAwd{background: url(http://static.bshare.cn/frame/images//bshare_box_sprite2.gif) no-repeat top left;background-position:0 -624px;width:18px;padding-left:3px;text-align:center;float:left;margin-left: 2px;height:15px;font-size:12px;color:#fff;overflow:hidden;}div.bsRlogo .bsPopupAwd,div.bsRlogoSel .bsPopupAwd{float:left;margin:5px 0 0 -14px;}</style><style type="text/css">.bs-xtop,.bs-xbottom{display:block;background:transparent !important;font-size:1px;width:100%;}.bs-xb1,.bs-xb2,.bs-xb3,.bs-xb4{display:block; overflow:hidden;}.bs-xb1,.bs-xb2,.bs-xb3{height:1px;}.bs-xb2,.bs-xb3,.bs-xb4{background-color:#06C;}.bs-xb1{margin-left:5px;background-color:#06C;}.bs-xb2{margin-left:3px;border-width:0 2px;}.bs-xb3{margin-left:2px;}.bs-xb4{height:2px;margin-left:1px;}.bs-lb1,.bs-lb2,.bs-lb3,.bs-lb4 {display:block;overflow:hidden;}.bs-lb1,.bs-lb2,.bs-lb3{height:1px;}.bs-lb2,.bs-lb3,.bs-lb4{background-color:#06C;}.bs-lb1{margin-right:5px;background-color:#06C;}.bs-lb2{margin-right:3px;border-width:0 2px;}.bs-lb3{margin-right:2px;}.bs-lb4{height:2px;margin-right:1px;}.bs-verticaltext{writing-mode:tb-rl;filter:fliph fliph;-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg);}a.bsSiteLink{text-decoration:none;color:#666;}a.bsSiteLink:hover{text-decoration:underline;}div.bsTitle{padding:0 8px;border-bottom:1px solid #e8e8e8;color:#666;background:#f2f2f2;text-align:left;}div.buzzButton{cursor:pointer;}div.bsRlogo,div.bsRlogoSel{width:68px;float:left;margin:0;padding:2px 0;}div.bsRlogo a,div.bsRlogoSel a{float:left;}div.bsLogo,div.bsLogoSel{float:left;width:111px;text-align:left;height:auto;padding:2px 4px;margin:2px 0;white-space:nowrap;overflow:hidden;}div.bsLogoSel,div.bsRlogoSel{border:1px solid #ddd;background:#f1f1f1;}div.bsLogo,div.bsRlogo{border:1px solid #fff;background:#fff;}div.bsLogo a,div.bsLogoSel a{display:block;height:16px;line-height:16px;padding:0 0 0 24px;text-decoration:none;float:left;overflow:hidden;}div.bsLogoSel a,div.bsRlogoSel a{color:#000;border:none;}div.bsLogo a,div.bsRlogo a{color:#666;border:none;}div.bsLogoLink{width:121px;overflow:hidden;background:#FFF;float:left;margin:3px 0;}#bsPanel{z-index:100000000;font-size:12px;width:137px;background:url(http://static.bshare.cn/frame/images/background-opaque-dark.png);padding:6px;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;}div.bsClear{clear:both;height:0;line-height:0;font-size:0;overflow:hidden;}div.bsPopupAwd{background: url(http://static.bshare.cn/frame/images//bshare_box_sprite2.gif) no-repeat top left;background-position:0 -624px;width:18px;padding-left:3px;text-align:center;float:left;margin-left: 2px;height:15px;font-size:12px;color:#fff;overflow:hidden;}div.bsRlogo .bsPopupAwd,div.bsRlogoSel .bsPopupAwd{float:left;margin:5px 0 0 -14px;}</style><script src="./index_files/cygj/jzzh/bshare_click" type="text/javascript" charset="gb2312"></script></head>
<body>
	<!--     头部header开始    -->
<div id="header">
	<div class="wrapper">
		<div id="mainSearch">
										
				<!-- Put the following javascript before the closing </head> tag. -->
<style>
.go_search {width: 300px;}
.go_search .gsc-input td,.go_search .gsc-input tddiv {padding:0 0 0 0;margin:0 0 0 0;height:23px;}
.go_search .gsc-input input:focus{ 
border:none;

}
.go_search .gsc-input input {
	border:none;
	height:23px;
	width: 100%;
	padding: 0px;
	border: none;
	margin: 0px;
	height: auto;
	outline: none;
	-webkit-box-shadow:none;
    -moz-box-shadow:none;
    box-shadow:none;
	background-image: url(../img/google_custom_search_watermark.gif?20140625);
	background-color: rgb(255, 255, 255);
	background-position: 0% 50%;
	background-repeat: no-repeat no-repeat;
}
</style>
<!-- Place this tag where you want the search box to render -->
<!--div class="go_search">
</div-->
		</div>
		<!--div id="logo" class="texthidden" onclick="javascript:location.href=&#39;/&#39;">
			<h1>在线工具</h1>
		</div-->
	</div>
</div>
<!--     头部header结束    -->
	<style>
.tool_content{width:1024px;margin-left:auto;margin-right:auto;margin-top:15px;margin-bottom:25px;}
.tool_content h1 {margin:10px 0 30px 0; font-size:12pt;}
.tool_content ul li{width:80px;height:30px;display:inline-block;}
.hex_num{width:24px;}
.num_value{width:550px;}
.content_area{margin:20px 0 20px 0;}
</style>
<div id="mainContent" class="tool_content wrapper">
	<div class="toolName">在线进制转换</div>
	<div style="margin:10px 0 10px 0;">支持在2~36进制之间进行任意转换，支持浮点型<a data-toggle="modal" href="http://tool.oschina.net/hexconvert/#advice" style="float:right;text-decoration:none;"><span class="badge badge-important"><i class="icon-envelope icon-white"></i> Feedback</span></a></div>
	<table>
		<tbody><tr><td>
			<div class="content_area" id="input_area">
			<ul>
                <li><label class="radio"><input type="radio" name="input_" value="2">2进制</label></li>
				<li><label class="radio"><input type="radio" name="input_" value="4">4进制</label></li>
				<li><label class="radio"><input type="radio" name="input_" value="8">8进制</label></li>
				<li><label class="radio"><input type="radio" name="input_" value="10" checked="checked">10进制</label></li>
				<li><label class="radio"><input type="radio" name="input_" value="16">16进制</label></li>
				<li><label class="radio"><input type="radio" name="input_" value="32">32进制</label></li>
				<li><select id="input_num" class="input-small">
                    <option value="2">2进制</option>
                    <option value="3">3进制</option>
                    <option value="4">4进制</option>
                    <option value="5">5进制</option>
                    <option value="6">6进制</option>
                    <option value="7">7进制</option>
                    <option value="8">8进制</option>
                    <option value="9">9进制</option>
                    <option value="10" selected="">10进制</option>
                    <option value="11">11进制</option>
                    <option value="12">12进制</option>
                    <option value="13">13进制</option>
                    <option value="14">14进制</option>
                    <option value="15">15进制</option>
                    <option value="16">16进制</option>
                    <option value="17">17进制</option>
                    <option value="18">18进制</option>
                    <option value="19">19进制</option>
                    <option value="20">20进制</option>
                    <option value="21">21进制</option>
                    <option value="22">22进制</option>
                    <option value="23">23进制</option>
                    <option value="24">24进制</option>
                    <option value="25">25进制</option>
                    <option value="26">26进制</option>
                    <option value="27">27进制</option>
                    <option value="28">28进制</option>
                    <option value="29">29进制</option>
                    <option value="30">30进制</option>
                    <option value="31">31进制</option>
                    <option value="32">32进制</option>
                    <option value="33">33进制</option>
                    <option value="34">34进制</option>
                    <option value="35">35进制</option>
                    <option value="36">36进制</option>
                    </select></li>
			</ul>
			<div class="input-prepend">
			<span class="add-on">转换数字</span><input id="input_value" type="text" value="" onpropertychange="px()" onchange="px()" oninput="px()" class="toolInput num_value" placeholder="在此输入待转换数字">
			</div>
			</div>
			</td>
		</tr>
		<tr><td>
			<div class="content_area" id="output_area">
			<ul>
                <li><label class="radio"><input type="radio" name="output_" value="2">2进制</label></li>
				<li><label class="radio"><input type="radio" name="output_" value="4">4进制</label></li>
				<li><label class="radio"><input type="radio" name="output_" value="8">8进制</label></li>
				<li><label class="radio"><input type="radio" name="output_" value="10">10进制</label></li>
				<li><label class="radio"><input type="radio" name="output_" value="16" checked="checked">16进制</label></li>
				<li><label class="radio"><input type="radio" name="output_" value="32">32进制</label></li>
				<li><select id="output_num" onchange="px(1);" class="input-small">
                        <option value="2">2进制</option>
                        <option value="3">3进制</option>
                        <option value="4">4进制</option>
                        <option value="5">5进制</option>
                        <option value="6">6进制</option>
                        <option value="7">7进制</option>
                        <option value="8">8进制</option>
                        <option value="9">9进制</option>
                        <option value="10">10进制</option>
                        <option value="11">11进制</option>
                        <option value="12">12进制</option>
                        <option value="13">13进制</option>
                        <option value="14">14进制</option>
                        <option value="15">15进制</option>
                        <option value="16" selected="">16进制</option>
                        <option value="17">17进制</option>
                        <option value="18">18进制</option>
                        <option value="19">19进制</option>
                        <option value="20">20进制</option>
                        <option value="21">21进制</option>
                        <option value="22">22进制</option>
                        <option value="23">23进制</option>
                        <option value="24">24进制</option>
                        <option value="25">25进制</option>
                        <option value="26">26进制</option>
                        <option value="27">27进制</option>
                        <option value="28">28进制</option>
                        <option value="29">29进制</option>
                        <option value="30">30进制</option>
                        <option value="31">31进制</option>
                        <option value="32">32进制</option>
                        <option value="33">33进制</option>
                        <option value="34">34进制</option>
                        <option value="35">35进制</option>
                        <option value="36">36进制</option>
                        </select></li>
			</ul>
			<div class="input-prepend">
			<span class="add-on">转换结果</span><input type="text" id="output_value" class="toolInput num_value" placeholder="转换结果">
			</div>
			</div>
			</td>
		</tr>
	</tbody></table>
</div>
<script type="text/javascript">
$(document).ready(function() {
	$('[name="input_"]').click(function (){
		$('#input_num').val($(this).val());
		$('#input_value').val("");
		$('#output_value').val("");
	});
	$('[name="output_"]').click(function (){
		$('#output_num').val($(this).val());
		px(1);
	});
	$("#input_num").change(function(){
		$("#input_area input").removeAttr("checked");
		var val = $(this).val();
		$("#input_area input[value="+val+"]").attr("checked","checked");
		$('#input_value').val("");
		$('#output_value').val("");
	});
	$("#output_num").change(function(){
		$("#output_area input").removeAttr("checked");
		var val = $(this).val();
		$("#output_area input[value="+val+"]").attr("checked","checked");
		px(1);
	});
});
function pxparseFloat(x,y){
	x=x.toString();
	var num=x;
	var data=num.split(".");
	var you=data[1].split(""); //将右边转换为数组 得到类似 [1,0,1]
	var sum=0;  //小数部分的和
	for(var i=0;i<data[1].length;i++){
		sum+=you[i]*Math.pow(y,-1*(i+1))
	}
	return parseInt(data[0],y)+sum;
}
function zhengze(x){
	var str;
	x=parseInt(x);
	if(x<=10){
		str=new RegExp("^[+\\-]?[0-"+(x-1)+"]*[.]?[0-"+(x-1)+"]*$","gi");
	}else{
		var letter="";
		switch(x){
			case 11:letter="a";break;
			case 12:letter="b";break;
			case 13:letter="c";break;
			case 14:letter="d";break;
			case 15:letter="e";break;
			case 16:letter="f";break;	
			case 17:letter="g";break;
			case 18:letter="h";break;
			case 19:letter="i";break;
			case 20:letter="j";break;
			case 21:letter="k";break;
			case 22:letter="l";break;
			case 23:letter="m";break;
			case 24:letter="n";break;
			case 25:letter="o";break;
			case 26:letter="p";break;	
			case 27:letter="q";break;
			case 28:letter="r";break;
			case 29:letter="s";break;
			case 30:letter="t";break;
			case 31:letter="u";break;
			case 32:letter="v";break;
			case 33:letter="w";break;
			case 34:letter="x";break;
			case 35:letter="y";break;
			case 36:letter="z";break;	
		}
		str=new RegExp("^[+\\-]?[0-9a-"+letter+"]*[.]?[0-9a-"+letter+"]*$","gi");
	}		
	return str;
}
var n=50;
var shurukuang="";
var flag="";
function px(y){
	if($("#input_value").val()!=flag||y){
		flag=$("#input_value").val();
		if($("#input_num").selectedIndex<n){
			$("#input_value").val("");
			$("#output_value").val("");
		}else{
			var px00=$("#input_value").val();
			var px0=px00.match(zhengze($("#input_num").val()));
			if(px0){
				if(px0[0].indexOf(".")==-1){
					var px1=parseInt(px0,$('#input_num').val());
				}else{
					var px1=pxparseFloat(px0,$('#input_num').val());
				}
				px1=px1.toString($('#output_num').val());
				$("#output_value").val(px1);
				shurukuang=px00;
			}else{
				$("#input_value").val(shurukuang);
			}
		}
		n=$("#input_num").selectedIndex;	
	}
	if($("#input_value").val()==""){
		$("#output_value").val("");
  }
}
</script>
	<!--     尾部footer开始    -->
<div id="footer">
	<p class="wrapper">在线工具 由 <a href="http://www.levelappro.com/" target="_blank">平欣电子</a> 所有| <script src="./index_files/cygj/jzzh/stat.php" language="JavaScript"></script><script src="./index_files/cygj/jzzh/core.php" charset="gb2312" type="text/javascript"></script>
	</p>
</div>
<!--     尾部footer结束    -->	<div class="modal hide fade" id="advice" style="display:none;">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">×</button>
        <h3>在线进制转换</h3>
      </div>
      <div class="modal-body">
		<p>在此填写您的意见信息：</p>
		<form class="well" id="advice_form">
			<input id="tool_name_f" type="hidden" name="tool_name" value="在线进制转换">
			<div class="input-prepend">
			<span class="add-on">Email邮箱:</span><input class="input-xlarge" type="text" id="advice_email" name="email" placeholder="在此输入您的Email" onblur="javascript:verifyEmail();" title="Email邮箱"><span style="color:#A00" id="email_error"> (必填) </span>
			</div>
			
            <label class="textarea">您的建议和意见：<br><textarea name="content" id="advice_content" style="width:480px;height:150px" placeholder="在此填写对  在线进制转换 的意见和建议"></textarea></label>
			<label class="input">验证码：
			<img style="margin-bottom:9px;" src="./index_files/cygj/jzzh/captcha" id="captcha_code" height="30px" width="80px" onclick="this.src = &#39;/action/jsbin/captcha?&#39;+new Date().getTime();">
			<input type="text" id="captcha_input" onkeyup="document.getElementById(&#39;verifyCode&#39;).value=this.value;" style="height:20px;width:30px;">
			<input id="verifyCode" name="verifyCode" type="hidden"></label>
		</form>
      </div>
      <div class="modal-footer">
        <a href="http://tool.oschina.net/hexconvert/#" class="btn" data-dismiss="modal">取消</a>
        <a href="http://tool.oschina.net/hexconvert/#" class="btn btn-primary" id="advice_submit" disabled="disabled">提交建议</a>
      </div>
    </div>
<script>
function verifyEmail(){
	if(null == $("#advice_email").val().match(/^\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/)){
		$("#email_error").html(" email输入错误 ");
		$("#advice_email").focus();
	}
	else{
		$("#email_error").html("<i class='icon-ok'></i>");
		$("#advice_submit").removeAttr("disabled");
	}
}
$(document).ready(function (){
	$("#advice_submit").click(function (){
		$.post("/action/advice/add_advice",
		{ tool_name : $("#tool_name_f").val() , email: $("#advice_email").val(), content: $("#advice_content").val() ,verifyCode: $("#verifyCode").val()},
		function (result){
			var m=eval('(' + result + ')');
			if("ok"==m.msg){
				alert("谢谢您的建议，我们会参考您的建议使ostools变得更好！");
				$('#advice').modal('hide');
				$("#captcha_code").attr("src",'/action/jsbin/captcha?'+new Date().getTime());
			}
			else{
				alert(m.msg);
			}
		});
	});
});
</script>
	<a class="bshareDiv" href="http://www.bshare.cn/share" style="display: block; text-decoration: none; padding: 0px; margin: 0px;"></a><script type="text/javascript" charset="gb2312" src="./index_files/cygj/jzzh/buttonLite.js"></script>


<!-- Generated by OSCTools.NET (Sun Jun 14 20:50:31 CST 2015) 2ms --><div id="bsBox" class="bsBox"><div class="bsClose">X</div><div class="bsTop"><div class="bsReturn">选择其他平台 &gt;&gt;</div><span style="margin-left:15px;">分享到</span><span class="bsPlatName"></span></div><div class="bsFrameDiv"><iframe class="bShareFrame" name="bsFrame677" frameborder="0" scrolling="no" allowtransparency="true"></iframe></div><div id="bsMorePanel" style="display: none;"></div></div><iframe src="./index_files/cygj/jzzh/cm.html" style="display: none;"></iframe><div id="bshareF" style="position: fixed; z-index: 100000000; top: 135.666666666667px; border: none; margin: 0px -149px 0px 0px; padding: 0px; right: 0px; background: none;"><div class="bshareF2" style="margin:0;padding:0;width:28px;"><div id="bshareF3" style="float:right;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="vertical-align:middle;"><div><b class="bs-xtop"><b class="bs-xb1"></b><b class="bs-xb2"></b><b class="bs-xb3"></b><b class="bs-xb4"></b></b><div id="bsFloatTab" style="padding:10px 0;font:1em Helvetica,Calibri,Tahoma,Arial,宋体,sans-serif;width:28px;background-color:#06C;color:#fff;"><div style="text-align:center;line-height:20px;height:20px;font-size:16px;font-weight:bold;margin:0 6px;">分</div><div style="text-align:center;line-height:20px;height:20px;font-size:16px;font-weight:bold;margin:0 6px;">享</div><div style="text-align:center;line-height:20px;height:20px;font-size:16px;font-weight:bold;margin:0 6px;">到</div></div><b class="bs-xbottom"><b class="bs-xb4"></b><b class="bs-xb3"></b><b class="bs-xb2"></b><b class="bs-xb1"></b></b></div></td><td><div id="bsPanel"><div class="bsTitle"><a style="float:left;height:20px;line-height:20px;font-weight:bold;" class="bsSiteLink" target="_blank" href="http://www.bshare.cn/intro">分享到...</a><a class="bsSiteLink" style="cursor:pointer;float:right;height:20px;line-height:20px;font-weight:bold;" onclick="if(confirm(window.bShare.iL8n.confirmClose)){var date=new Date();date.setTime(date.getTime()+1800000);document.cookie=&#39;bshare_off=true;expires=&#39;+date.toGMTString()+&#39;;path=/&#39;;document.getElementById(&#39;bshareF&#39;).style.display=&#39;none&#39;;}return false;">X</a><div class="bsClear"></div><div class="bsClear"></div></div><div style="padding-left:8px;background:#fff;*height:162px;"><div class="bsLogoLink"><div class="bsLogo" onmouseover="javascript:this.className=&#39;bsLogoSel&#39;" onmouseout="javascript:this.className=&#39;bsLogo&#39;"><a href="javascript:;" title="腾讯微博" onclick="javascript:bShare.share(event,&#39;qqmb&#39;);return false;" style="background:url(http://static.bshare.cn/frame/images//slogos_sprite8.png) no-repeat 0 -1512px;">腾讯微博</a></div><div class="bsLogo" onmouseover="javascript:this.className=&#39;bsLogoSel&#39;" onmouseout="javascript:this.className=&#39;bsLogo&#39;"><a href="javascript:;" title="一键通" onclick="javascript:bShare.share(event,&#39;bsharesync&#39;);return false;" style="color: red;background:url(http://static.bshare.cn/frame/images//slogos_sprite8.png) no-repeat 0 -288px;">一键通</a></div><div class="bsLogo" onmouseover="javascript:this.className=&#39;bsLogoSel&#39;" onmouseout="javascript:this.className=&#39;bsLogo&#39;"><a href="javascript:;" title="新浪微博" onclick="javascript:bShare.share(event,&#39;sinaminiblog&#39;);return false;" style="background:url(http://static.bshare.cn/frame/images//slogos_sprite8.png) no-repeat 0 -1728px;">新浪微博</a></div><div class="bsLogo" onmouseover="javascript:this.className=&#39;bsLogoSel&#39;" onmouseout="javascript:this.className=&#39;bsLogo&#39;"><a href="javascript:;" title="QQ空间" onclick="javascript:bShare.share(event,&#39;qzone&#39;);return false;" style="background:url(http://static.bshare.cn/frame/images//slogos_sprite8.png) no-repeat 0 -1566px;">QQ空间</a></div><div class="bsLogo" onmouseover="javascript:this.className=&#39;bsLogoSel&#39;" onmouseout="javascript:this.className=&#39;bsLogo&#39;"><a href="javascript:;" title="手机快传" onclick="javascript:bShare.share(event,&#39;189share&#39;);return false;" style="background:url(http://static.bshare.cn/frame/images//logos/s4/189share.png) no-repeat;">手机快传</a></div><div class="bsLogo" onmouseover="javascript:this.className=&#39;bsLogoSel&#39;" onmouseout="javascript:this.className=&#39;bsLogo&#39;"><a href="javascript:;" title="搜狐微博" onclick="javascript:bShare.share(event,&#39;sohuminiblog&#39;);return false;" style="background:url(http://static.bshare.cn/frame/images//slogos_sprite8.png) no-repeat 0 -1800px;">搜狐微博</a></div></div><div class="bsClear"></div></div><div style="height:20px;line-height:20px;padding:0 8px;border-top:1px solid #e8e8e8;color:#666;background:#f2f2f2;"><div class="buzzButton" style="float:left;">更多...</div><div id="bsPower" style="float:right;text-align:right;overflow:hidden;height:100%;"><a class="bsSiteLink" style="font-size:10px;vertical-align:text-bottom;line-height:24px;cursor:pointer;" href="http://www.bshare.cn/" target="_blank"><span style="font-size:10px;vertical-align:text-bottom;"><span style="color:#f60;">b</span>Share</span></a></div></div></div></td></tr></tbody></table></div><div class="bsClear"></div></div></div></body></html>